-- GENERATED SPELL FOR [Deathshadow Imp] --


function spell0_22362(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(20801,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22362', 2000, 1)
end

function Sorts_22362(pUnit, Event)
local choix_sorts_22362 = math.random(0, 0)
if choix_sorts_22362 == 0 then
pUnit:RegisterEvent('spell0_22362', 1, 1)
end
end

function mob22362_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22362', math.random(1500, 3000), 1)
end

function mob22362_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22362_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22362_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22362, 1, 'mob22362_Action')
RegisterUnitEvent(22362, 2, 'mob22362_Leave')
RegisterUnitEvent(22362, 3, 'mob22362_Kill')
RegisterUnitEvent(22362, 4, 'mob22362_Die')
